﻿namespace Baula.TextGen.Framework.Tools
{
    class DefaultFactory : IFactory
    {
        public PartTemplate CreatePartTemplate(string headingLine)
        {
            return new PartTemplate(headingLine);
        }

        public PartTemplate CreatePartTemplate()
        {
            return new PartTemplate();
        }

        public Document CreateDocument(DocumentTemplate documentTemplate)
        {
            return new Document(documentTemplate);
        }

        public Part CreatePart(PartTemplate partTemplate)
        {
            return new Part(partTemplate);
        }
    }
}